package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.AgAgent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.utils.BasePage;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 代理用户信息表 Mapper 接口
 * </p>
 *
 * @author leehao
 * @since 2019-07-08
 */
public interface AgAgentMapper extends BaseMapper<AgAgent> {

    /**
     * 查找代理用户收益情况
     * @param page
     * @param agent
     * @author leehao
     * @return 分页对象
     */
    IPage<AgAgent> queryAgentProfit(BasePage<AgAgent> page, @Param("agent") AgAgent agent);

}
